from header_quests import *

####################################################################################################################
#  Each quest record contains the following fields:
#  1) Quest id: used for referencing quests in other files. The prefix qst_ is automatically added before each quest-id.
#  2) Quest Name: Name displayed in the quest screen.
#  3) Quest flags. See header_quests.py for a list of available flags
#  4) Quest Description: Description displayed in the quest screen.
#
# Note that you may call the opcode setup_quest_text for setting up the name and description
####################################################################################################################

quests = [
#system (classes, subclasses, alignment) - similar to TLD attribute quests
('class_bushi','PATH: Bushi',0,'You are a Bushi, one of the warrior class of feudal Japan'),
('class_kuge','PATH: Kuge',0,'You are a Kuge, one of the aristocrats of feudal Japan'),
('class_ronin','PATH: Ronin',0,'You are a Ronin, one of the masterless samurai of feudal Japan'),
('class_ronin_investigator','PATH: Ronin',0,'You are a Ronin, one of the masterless samurai of feudal Japan. You have taken on the role of Investigator for {s10}.'),
('class_merchant','PATH: Chounin',0,'You are a Chounin, a merchant of feudal Japan'),
('subclass_monk','WAY: Obousan',0,'You are Obousan, a Monk of the Tendai sect of Buddhism.'),
('subclass_kengo','WAY: Kengo',0,'You are Kengo, one of the elite swordsmen of Japan'),
('subclass_bandit','WAY: Sanzoku',0,'You are Sanzoku, one of the bandit scourge of the Japanese countryside'),
('subclass_shinobi','WAY: Shinobi',0,'You are Shinobi, one of the secret spies of feudal Japan'),
('faction_hosokawa','RETAINER: Hosokawa',0,'You have aligned yourself with the Hosokawa Clan, descendants of the ancient Seiwa Genji, most powerful of the Minamoto.'),
('faction_yamana','RETAINER: Yamana',0,'You have aligned yourself with the Yamana Clan, descendants of Minamoto Yoshinori.'),
('faction_ginza','RETAINER: Gin-za',0,'You have allied yourself with the Gin-za, the silver merchant guild of feudal Japan'),
('faction_enza','RETAINER: En-za',0,'You have allied yourself with the En-za, the salt merchant guild of feudal Japan'),
('faction_andaza','RETAINER: Anda-za',0,'You have allied yourself with the Anda-za, the oil merchant guild of feudal Japan'),
# misc quests
('test','Test quest functions',0,'This is a dummy quest to test functionality'),
("sanda_bandits","Defeat the bandits near Sanda.",qf_show_progression,
 "The kokujin of Sanda has asked that you rid the nearby area of some bothersome bandits."),
('defeat_mountain_bandits','Defeat the bandits near En-ryakuji',qf_show_progression,
 'The priest Hyogo-bo of En-ryakuji has asked that you ease the burden of the pilgrims travelling to the temple.'),
("companion_training","{s10} is training with {s11}.",0,
 "{s10} is currently training with {s11}, the sensei of the {s13} dojo."),
('kengo_training','Kengo training',0,
 "You are currently training with {s10} on your path towards becoming a kengo."),
("defeat_pirates","Defeat the pirates south of Kyoto.",qf_show_progression,
 "{s3} has ordered that you rid the area along the north shore of the Yodo River south of Kyoto of some pirates."),
("intro_kuge_deliver_msg","Deliver a message to {s10} of {s11}.",0,
 "You have been asked to deliver a message to {s10} of {s11}."),
("merchant_intro_letter","Speak with the merchant in {s10}.",0,
 "The merchant in {s11} has asked that you help his associate in {s10}."),
("merchant_sell_tea","Sell some tea.",0,
 "Sell some tea in Hyogo and Himeji for the merchant in Kakogawa."),
("bladesmith","Gather the materials for the weaponsmith in Aioi.",0,
 "Collect 1 tamahagane nugget, 1 bar of iron, 1 bar of copper, and a bolt of silk for the weaponsmith in Aioi."),
("bladesmith_2","Return to the Aioi weaponsmith.",0,
 "Return to Aioi in {reg1} days to pick up your sword."),
('repair_weapon','Have a weapon repaired',0,
 'The weaponsmith in {s10} is currently repairing your {s11}.'),
('repair_armor','Have some armor repaired',0,
 'The weaponsmith in {s10} is currently repairing your {s11}.'),
('recruit_apprentice','Recruit the apprentice',0,
 'You must make room for the apprentice in your party.'),
# Job board missions
("kokujin_deliver_msg","Deliver a message.",qf_random_quest,
 "The kokujin of {s20} has asked that you deliever a message to the kokujin of {s21}."),
("kokujin_needs_goods","A kokujin needs goods.",qf_random_quest,
 "The kokujin of {s20} needs the following goods as soon as possible: {s11}."),
("kokujin_defeat_bandits","Defeat some bandits.",qf_random_quest,
 "The kokujin of {s20} has asked that you deal with some nearby bandits harassing local travelers."),
('jb_faction_scout','Scout for the {s12}',qf_random_quest,
 '{s11} of the {s12} has asked to you scout for any enemy parties. Return to him when you have found one.'),
('jb_faction_deliver_msg','Deliver a message to the shugo in {s12}',qf_random_quest,
 'The shugo in {s11} has asked that you deliver a message to his counterpart in {s12} within {reg10} days.'),
('jb_faction_deliver_koban','Deliver funds to the shugo in {s11}',qf_random_quest,
 'You have been tasked with delivering {reg10} stacks of gold koban to the shugo in {s11}.'),
('jb_faction_escort_noble','Escort a {s14} noble',qf_random_quest,
 'Escort {s11} from {s12} to {s13}'),
# ronin storyline quests, in order
('ronin_storyline_capture_bandit_leader','Capture a bandit leader',0,
"The kokujin of {s10} has tasked you apprehending the leader of a small group of bandits terrorizing the area."),
('ronin_storyline_liberate_captured_village','Liberate a village',0,
"The village of {s10} has been overrun by bandit forces. Liberate the village and its inhabitants."),
('ronin_storyline_investigate_arms_dealer','Track down an arms dealer.',0,
"{s10} wants you to investigate why the bandits have become better equipped, and eliminate their supplier."),
('ronin_storyline_eliminate_lesser_horde','Eliminate a lesser bandit horde',0,
"A small horde of bandits is marching on Kyoto. Prevent them from reaching the city."),
('ronin_storyline_investigate_monk_connection','Investigate the monk-bandit connection',0,
"The presence of Jodo Shinshu monks with the bandit horde has {s10} concerned. He has asked that you look into it."),
('ronin_storyline_destroy_bandit_fort','Destroy a bandit fort',0,
"Find and destroy one of the bandit forts."),
('ronin_storyline_investigate_faction','Investigate the {s10}-bandit connection',0,
"{s10} has learned of a plot between the {s11} and the bandits. Root it out and deal with the offenders."),
('ronin_storyline_eliminate_bandit_hordes','Defeat the bandit hordes',0,
"Put down the bandit menace once and for all, and eliminate the bandit hordes"),
# ronin random quests
('ronin_defeat_bandit_parties','Eliminate bandit parties',qf_random_quest|qf_show_progression,
 'You have been tasked with defeating {reg1} bandit parties'),
('ronin_apprehend_bandits','Capture and apprehend some bandits',qf_random_quest,
 'You have been asked to apprehend some bandits and bring them in for questioning. You must capture at least one, and he must be of bandit rank or higher.'),
('ronin_investigate_bandit_activity','Investigate the region around {s10}',qf_random_quest,
 'A group of bandits has been terrorizing the people around {s10}, but have gone into hiding. Interview the citizens of {s10} to learn their whereabouts, and eliminate them.'),
# bandit storyline quests
('bandit_storyline_capture_city','Capture the city of {s10}',0,'Capture the city of {s10}'),
('bandit_storyline_capture_town','Capture the town of {s10}',0,'Capture the city of {s10}'),
# random bandit quests
('bandit_establish_outpost','Establish outpost',qf_random_quest,'Build an outpost'),
('bandit_capture_prisoners','Capture prisoners',qf_random_quest,'capture prisoners'),
('bandit_capture_village','Capture village',qf_random_quest,'capture_village'),
('bandit_harass_trade_routes','Harass',qf_random_quest,'Harass'),
('bandit_raid_town','Raid',qf_random_quest,'Raid'),
# merchant storyline quests - not in order
('merchant_storyline_establish_trading_post','Establish a trading post',0,
"Establish an economic presence in the area and open a trading post in a city."),
('merchant_stroyline_establish_za_presence','Establish the presence of the {s10} za',0,
"Establish a presence for the {s10} za in {s11} by opening up the market with the merchants."),
('merchant_storyline_arms_dealer_1','Make contact with the {s10}',0,
"Make contact with the {s10}, and strike an arms deal."),
### a midway quest needs to go here relating to Battle of Enryaku-ji
('merchant_storyline_arms_dealer_2','Deliver the contract goods',0,
"Deliver the arms and set forth in the contract with the {s10}."),
('merchant_storyline_hostile_takeover','Assume control of the {s10} za',0,
"Defeat the forces of the {s10} za, and take control of its markets."),
# merchant storyline sub-quests - done to set conditions of completion for main quests
('merchant_storyline_secure_supplier','Find a supplier for the {s10} merchant',0,
"The merchant in {s10} requires that you find him a supplier for {s11} as a condition of trade."),
('merchant_storyline_establish_trade_route','Establish a trade route to Akashi',0,
"Open up a market for the merchant in Akashi, and establish a regular trade route to that city."),
# za intro quests
('merchant_oil_za_1','Deliver some oil',0,'Deliver some oil.'),
('merchant_silver_za_1','Deliver some silver',0,'Deliver this large, tempting brick of silver to {s10} in {s11} within {reg10}.'),
("merchant_salt_za_1","Deliver a shipment of salt.",0,"Deliver a shipment of salt from Sakai to Utano. Beware of raiders."),
# random merchant quests
('merchant_establish_trading_post','Establish a trading post',qf_random_quest,
	"Establish an economic presence in the area and open a trading post in {s10}. Speak with {s11} to get started."), # max three in towns, and the one in a city
('merchant_patrol_trade_route','Patrol a trade route',qf_random_quest,
	"Patrol the {s11}-to-{s12} trade route for 1 week and neutralize the bandit leader harassing the merchants. A special bonus will be given if you bring him in alive."),
('merchant_defend_trade_route','Defend the trade route.',qf_random_quest|qf_show_progression,
	'Several groups of bandits are harassing traveling merchants between {s10} and {s11}. Your za-master has asked you to eliminate them.'),
('merchant_deliver_shipment','Deliver a shipment of {s10}.',qf_random_quest,
	'Deliever a shipment of {s10} to {s11} in {s12} within {reg10} days.'),
('merchant_escort_duty','Escort a valuable shipment.',qf_random_quest,
	'Escort a valuable shipment from {s10} to {s11}.'),
('merchant_negotiate_trade_contract','Negotiate a trade contract',qf_random_quest,
	"Negotiate a trade contract for {s10} of {s11}."),
('merchant_enforcer','Enforce za regulations',qf_random_quest,
	"A rogue merchant has violated your za's trading agreements around {s10}. You are tasked with dealing with him."),
#Monk random missions
('monk_escort_pilgrims','Escort pilgrims to Enryaku-ji',qf_random_quest,
 'Escort a group of pilgrims from {s10} to Enryaku-ji.'),
('heal_plague','Cure the plague in {s10}.',qf_random_quest,
 'A deadly plague has overcome the people of {s10}. Travel their and do what you can to ease their suffering.'),
('defeat_ikko_raiders','Eliminate the Ikko raiding party',qf_random_quest,
 'A group of Ikko Ikki is harassing Enryaku-ji. The head priest has asked that you deal with the situation.'),
#Kuge random missions
("kuge_emissary","Travel to the imperial court.",qf_random_quest,
 "Travel to the imperial court on behalf of {s10}."),
("kuge_war_materials","Transport war materials.",qf_random_quest,
 "Transport a shipment of {s10} to {s11} in {s12} within {reg10} days."),
("kuge_entertain_visiting_kuge","Entertain a visiting kuge.",qf_random_quest,
 "A high-ranking noble is visiting {s10}, and he has asked you to bring a suitable gift of one {s11}."),
#storyline bushi missions- in order
('storyline_bushi_establish_outpost','Establish an outpost.',0,
 "Establish a fort near enemy territory. Do not let it be captured or razed."),
('storyline_bushi_rebellion',"Quell a minor uprising.",0,
 "A group of meddling monks has started a rebellion in the villages near {s10}. Seek out and destroy every rebel group you find."),
('storyline_bushi_enemy_patrols','Defeat ten enemy patrols.',0,
 "Blah blah."),
('storyline_bushi_war','Battle at Shokoku Temple.',0,
 "Engage the enemy forces at Shokoku Temple inside North Kyoto."),
('storyline_bushi_establish_outpost_2','Establish several outposts.',0,
 "Establish three forts near enemy territory. Do not let them be captured or razed."),
('storyline_bushi_rebellion_2',"Quell a major uprising.",0,
 "Several towns and villages are in open rebellion against you. Put down this rebellion before all is lost."),
('storyline_bushi_enemy_army','Engage an enemy army.',0,
 "Engage and defeat an enemy army."),
('storyline_bushi_war_2','Battle at Fukuchiyama',0,
 "Engage the enemy forces near Fukuchiyama."),
#Bushi random missions
("bushi_suppress_rebels","Defeat some rebels near {s10}",qf_random_quest,
 "You have been ordered to suppress a minor uprising near {s10}."),
("bushi_defeat_enemy_local_garrisons","Eliminate enemy local patrols.",qf_random_quest,
 "Eliminate as many local patrols as possible. You must defeat at least one to complete the quest."),
("bushi_war_materials","Transport war materials.",qf_random_quest,
 "Transport a shipment of {s10} to {s11} in {s12} within {reg10} days."),
("bushi_reconnoiter_enemy_army","Reconnoiter an enemy army.",qf_random_quest,
 "You have been ordered to reconnoiter an enemy army near {s10}. Do not engage the enemy forces."),
('bushi_scout_enemy_patrol','Scout for a {s12} patrol',qf_random_quest,
 '{s11} has asked to you scout for any enemy parties. Return to him when you have found one.'),
("end_quests","name",0,"description"),
]

